import { createWebHistory, createRouter } from 'vue-router'


import Home from '../views/home/Home.vue'
import Index from '../views/home/index.vue'
import Gou from '../views/home/gou.vue'


const routes = [
    { path: '/', redirect: '/home' },
    {
        path: '/home',
        component: Home,
        children: [
            {
                path: 'index',
                component: Index,
            },
            {
                path: 'gou',
                component: Gou,
            },
        ]
    },

]

export const router = createRouter({
    history: createWebHistory(),
    routes,
})